package cn.duhengkui.national.valuelist.example;

import org.junit.Test;

import cn.duhengkui.national.valuelist.gen.CreateUtil;
import cn.duhengkui.national.valuelist.gen.DataBaseInfo;


public class CreateEntitys {

	@Test
	public void createEntities() {
		
		/*String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://172.16.6.26:3306/cp?useUnicode=true&characterEncoding=utf-8&useSSL=false";
		String userName = "root";//用户名
		String password = "123456";//密码
		String entityPackage = "cn.duhengkui.national.valuelist.example.entity";//生成entity包名
		String sourcePath = "src/main/java";//source folder
		String entityNamesPattern = "bookinfo";//表名称，可以支持多个，以逗号分隔
		DataBaseInfo dataBaseInfo = new DataBaseInfo(driver, url, userName, password);
		CreateUtil.createEntitys(dataBaseInfo, entityPackage, sourcePath, entityNamesPattern, false);*/
		CreateUtil.createDaos("cn.duhengkui.national.valuelist.example.dao", "src/main/java", "cn.duhengkui.national.valuelist.example.entity", false);
	}

}